import request from "./axios";



function postCreateOrderRequest(params) {
    return request({
        url: "/orders/ordercreate",
        method: "post",
        params
    })
}

function postPayOrderRequest(params) {
    return request({
        url: "/orders/orderpay",
        method: "post",
        params
    })
}

function postOrderDetailRequest(params) {
    return request({
        url: "/orders/setorderdetail",
        method: "post",
        params
    })
}

function getOrdersRequest(params) {
    return request({
        url: "/orders/getorder",
        method: "get",
        params
    })
}

function getOrderDetailRequest(params) {
    return request({
        url: "/orders/getorderdetail",
        method: "get",
        params
    })
}

export {
    postCreateOrderRequest,
    postPayOrderRequest,
    postOrderDetailRequest,
    getOrderDetailRequest,
    getOrdersRequest
}
